﻿@using KM.HtmlHelpers
@model KM.Models.CustomerViewModel

@{
    ViewBag.Title = "Index";
}
<link href="~/Content/Site.css" rel="stylesheet" />
<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>Name</th>
        <th>Address</th>
        <th>Place</th>

    </tr>

    @foreach (var item in Model.Customers)
    {

        <tr>
            <td>
                @item.Name
            </td>
            <td>
                @item.Address
            </td>
            <td>
                @item.Place
            </td>

        </tr>
    }

</table>
<nav class="pagination">
    @Html.RecordPage(Model.PagingInfoModel, x => Url.Action("phantrang", new { page = x }))
</nav>